-- card: 2858 from stack: in -- bmap block id: 0 -- flags: 4000 -- background id: 2777 -- name: -- part 1 (field) -- low flags: 81 -- high flags: 2001 -- rect: left=0 top=80 right=342 bottom=512 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 3 -- text size: 14 -- style flags: 0 -- line height: 15 -- part name: About -- part contents for background part 167 ----- text ----- Often there is a field which has several empty lines in it. It is nice to be able to remove those quickly. A script takes too long in most cases, so this is a job for an XFCN! An XFCN is an external function-- it's like an XCMD but it returns a value. All this XFCN is is a small pascal program which removes multiple carriage returns from a text source. This can be a field, a variable, etc. The original contents are not destroyed. Feel free to experiment with CRUNCH here and use CRUNCH in your own stacks. Click the archetypal "About" button for more info. -- part contents for card part 1 ----- text ----- Often it is useful to remove extra spaces between lines in a text field in HyperCard™. You can write a script to do this (or if you're so inclined, use the one provided here), but it can be awfully slow. Such speed can be frustrating. That's why I wrote CRUNCH. Crunch is an XFCN— you use it like any HyperCard function, once you have installed it into your stack. To install CRUNCH, or any other XCMD or XFCN, you can use ResEdit, but I suggest the XCMD by Steve Maller called ResCopy, available through BMUG & other sources of user-supported software. CRUNCH is free, but it's Copyright © 1988 by Dan Wood. It may be freely distributed, and only a reasonable duplication fee may be charged. Specifically, EDUCOMP is prohibited from distributing this. -- part contents for background part 51 ----- text ----- Often there is a field which has several empty lines in it. It is nice to be able to remove those quickly. A script takes too long in most cases, so this is a job for an XFCN! An XFCN is an external function-- it's like an XCMD but it returns a value. All this XFCN is is a small pascal program which removes multiple carriage returns from a text source. This can be a field, a variable, etc. The original contents are not destroyed. Feel free to experiment with CRUNCH here and use CRUNCH in your own stacks. Click the archetypal "About" button for more info.